﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace DBMS.Models.DataInterfaces
{
    public interface IDatabaseRepository
    {
        // NOTE: the retrieval of database id is probably unneccessary
        /// <summary>
        /// Creates a database with the specified name and returns it's id.
        /// </summary>
        /// <param name="databaseName"></param>
        /// <returns>The id of the created database</returns>
        int CreateDatabase(Database database);

        Database GetDatabase(int databaseId);

        void Update(Database database);

        void Delete(int databaseId);

        IList<Database> GetAll();
    }
}
